package com.yizhang.executor;

import com.yizhang.pojo.Configuration;
import com.yizhang.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @Author: yi.zhang
 * @CreateTime: 2025-05-27 17:15:33
 * @Description: 执行sql
 */
public interface Executor {

    /**
     * 查询数据
     * @param configuration
     * @param mappedStatement
     * @param parameter
     * @return
     * @param <E>
     */
    <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object parameter) throws Exception;
}
